import numpy as np
import torch
import random
import math
import torch.nn.functional as F
import matplotlib.pyplot as plt
import re
import torch.nn as nn
import copy
import warnings
import copy
from pathlib import Path

# ../../datasets/coco128/images/train2017/000000000357.jpg
path = Path('../../datasets/coco128/images/train2017/000000000357.jpg')
print(path.stem)  # 从输出结果来看就是返回不带后缀的文件名
print(path.stem.isnumeric())  # 判断是不是数字
